package ruru.server.backend;

import ruru.client.backend.item.Item;

/**
 * Represents a drop of any kind from a boss in World of Warcraft.
 * @author zane.tian@gmail.com
 */
public class BossDrop implements Item {
	private String name;
	private Boss boss;
	
	public BossDrop(Boss boss, String name) {
		this.name = name;
		this.boss = boss;
	}
	
	/**
	 * Get the Boss from which the loot dropped from.
	 */
	public Boss getBoss() {
		return boss;
	}
	
	/**
	 * Get the name of the Loot.
	 */
	public String getName() {
		return name;
	}

	public String wowheadUrl() {
//		return "http://wow.allakhazam.com/ihtml?" + StringUtil.convertSpaces(name);
		return "http://wow.allakhazam.com/ihtml?" + name;
	}
}